import wxy.bridge.color.*;
import wxy.bridge.size.*;
import wxy.bridge.*;

public class Main {
    public static void main(String[] args) {
        System.out.println("测试桥接模式!");

        Brush smallRedBrush = new ConcreteBrush(new SmallSize(), new RedColor());
        Brush mediumGreenBrush = new ConcreteBrush(new MediumSize(), new GreenColor());
        Brush largeBlueBrush = new ConcreteBrush(new LargeSize(), new BlueColor());

        smallRedBrush.draw();
        mediumGreenBrush.draw();
        largeBlueBrush.draw();

        System.out.println("结束测试!");
    }
}